<template>
  <div id="webproject">
    <div class="shadow-img slide-bck-bottom">
      <p class="nowrap"><span class="yellow">Portfolio</span></p>
    </div>
    <div class="description slide-bck-top">
      <Row class="tab" type="flex" justify="center">
        <li
          v-for="(item, index) in tagspro"
          :key="index"
          @click="counter = index"
          :class="{
            active: counter === index,
          }"
        >
          {{ item }}
        </li>
      </Row>
       <div class="content show-all" v-show="counter === 0">
        <ul>
          <li v-for="(item, index) in imgs" :key="index">
            <img :src="item" alt="" />
          </li>
          
        </ul>
      </div>
      <div class="content show-all" v-show="counter === 1">
        <ul>
         <li v-for="(item, index) in imgs" :key="index" v-if="index>=2 && index<=4">
            <img :src="item" alt="" />
          </li>
          
        </ul>
      </div>
      <div class="content show-all" v-show="counter === 2" >
        <ul>
          <li v-for="(item, index) in imgs" :key="index" v-if="index===3 || index===4">
            <img :src="item" alt="" />
          </li>
          
        </ul>
      </div>
      <div class="content show-all" v-show="counter === 3" >
        <ul>
         <li v-for="(item, index) in imgs" :key="index" v-if="index>=1 && index<=4">
            <img :src="item" alt="" />
          </li>
          
        </ul>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      counter: 0,
      tagspro: ["Show All", "Vue", "React", "jQuery"],
      imgs:[require("../assets/beach.jpg"),require("../assets/book.jpg"),require("../assets/guy.jpg"),require("../assets/logs.jpg"),require("../assets/illustration.jpg"),],
    };
  },
};
</script>

<style  scoped>
.shadow-img {
  width: 100%;
  margin: 0 auto;
  height: 130px;
  background-color: #111111;
  border-radius: 5px;
  font-size: 25px;
  color: #ffffff;
  position: relative;
}
.shadow-img p {
  position: absolute;
  bottom: 20px;
}
.shadow-img p span.yellow {
  color: #f4d03f;
  margin-right: 10px;
  margin-left: 10px;
}
.slide-bck-bottom {
  animation: slide-bck-bottom 0.6s cubic-bezier(0.47, 0, 0.745, 0.715) both;
  animation-delay: 0.4s;
}
.slide-bck-top {
  animation: slide-bck-top 0.6s cubic-bezier(0.47, 0, 0.745, 0.715) both;
  animation-delay: 0.4s;
}
.description {
  width: 100%;
  background-color: #ffffff;

  border-radius: 5px;
  margin: 0 auto;
  margin-top: 10px;
  position: relative;
  margin-bottom: 20px;
}
.description .tab li {
  background-repeat: no-repeat;
  width: 25%;
  border-right: 1px solid #ffffff;
  margin: 0px;
  padding: 24px 0px 19px;
  text-align: center;
  background-color: #111111;
  color: #f4d03f;
  transition: background-color 0.3s ease-in;
  -webkit-transition: background-color 0.3s ease-in;
  font-size: 16px;
}

.description .tab li.active {
  background-color: #f4d03f;
  color: #111111;
}
.description .content {
  padding: 15px 30px;
}
.content ul {
  display: flex;
  flex-wrap: wrap;
}
.content>li {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background-color: #111111;
  margin: 1px;
   animation: slide-rotate-ver-left 1s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@keyframes slide-bck-bottom {
  0% {
    opacity: 0;
    transform: translateZ(400px) translateY(-200px);
  }
  100% {
    opacity: 1;
    transform: translateZ(0) translateY(0);
  }
}
@keyframes slide-bck-top {
  0% {
    opacity: 0;
    transform: translateZ(400px) translateY(200px);
  }
  100% {
    opacity: 1;
    transform: translateZ(0) translateY(0);
  }
}
@keyframes slide-rotate-ver-left {
  0% {
    transform: translateX(-150px) rotateY(90deg);
  }
  100% {
    transform: translateX(0) rotateY(0);
  }
}
</style>